/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ssi.mrms.model;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author jirapatjantsakool
 */
public class RMcddtlModel extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer cddid;
    private Integer cdhid;
    private String cdhdocno;
    private String cdddesc;
    private String cddqty;
    private String cddremark;
    private String cddcreby;
    private Date cddcredat;
    private String cddupdby;
    private Date cddupddat;
    
    private RMcdhdrModel rmcdhdr;

    public RMcddtlModel() {
    }

    public String getCdhdocno() {
        return cdhdocno;
    }

    public void setCdhdocno(String cdhdocno) {
        this.cdhdocno = cdhdocno;
    }
    
    public RMcddtlModel(Integer cddid) {
        this.cddid = cddid;
    }

    public Integer getCddid() {
        return cddid;
    }

    public void setCddid(Integer cddid) {
        this.cddid = cddid;
    }

    public Integer getCdhid() {
        return cdhid;
    }

    public void setCdhid(Integer cdhid) {
        this.cdhid = cdhid;
    }

    public String getCdddesc() {
        return cdddesc;
    }

    public void setCdddesc(String cdddesc) {
        this.cdddesc = cdddesc;
    }

    public String getCddqty() {
        return cddqty;
    }

    public void setCddqty(String cddqty) {
        this.cddqty = cddqty;
    }

    public String getCddremark() {
        return cddremark;
    }

    public void setCddremark(String cddremark) {
        this.cddremark = cddremark;
    }

    public String getCddcreby() {
        return cddcreby;
    }

    public void setCddcreby(String cddcreby) {
        this.cddcreby = cddcreby;
    }

    public Date getCddcredat() {
        return cddcredat;
    }

    public void setCddcredat(Date cddcredat) {
        this.cddcredat = cddcredat;
    }

    public String getCddupdby() {
        return cddupdby;
    }

    public void setCddupdby(String cddupdby) {
        this.cddupdby = cddupdby;
    }

    public Date getCddupddat() {
        return cddupddat;
    }

    public void setCddupddat(Date cddupddat) {
        this.cddupddat = cddupddat;
    }

    public RMcdhdrModel getRmcdhdr() {
        return rmcdhdr;
    }

    public void setRmcdhdr(RMcdhdrModel rmcdhdr) {
        this.rmcdhdr = rmcdhdr;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cddid != null ? cddid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RMcddtlModel)) {
            return false;
        }
        RMcddtlModel other = (RMcddtlModel) object;
        if ((this.cddid == null && other.cddid != null) || (this.cddid != null && !this.cddid.equals(other.cddid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.ssi.mrms.model.Rmcddtl[ cddid=" + cddid + " ]";
    }
    
}
